var Alipay = require("../index").Alipay;

var _config = {
	"host": "http://api.dotnar.com/",
	// 合作身份者id，以2088开头的16位纯数字
	"partner": "2088511420574362",
	// 安全检验码，以数字和字母组成的32位字符
	"key": "7o9kgtybxdq2elmi7o59su0tpt0kwroo",
	// 卖家支付宝帐户 必填
	"seller_email": "dotnar@hotmail.com",
	// ca证书路径地址，用于curl中ssl校验
	"cacert": __dirname + '/../../../cacert.pem',
	// 访问模式,根据自己的服务器是否支持ssl访问，若支持请选择https；若不支持请选择http
	"transport": "http",
	// 字符编码格式 目前支持 gbk 或 utf-8
	"input_charset": "utf-8",

	"RSA_private_key": `-----BEGIN RSA PRIVATE KEY-----
MIICXAIBAAKBgQC/UvOmDmLUGCkMNyE7L0H9vpZTLh114pqJU6N2pQ7QOIgHnM6G
tMaOqEL9hFSXRJ0JCz3+RIHUMRhOtq0jo0XQ5ika4D/RptVoNo6/OFVs9VCvBpwY
ridJo7Df880Dy/x2Po126AbmUxqQMQOZtz7UPicI+Bt4nYmF7wGYkCFCVQIDAQAB
AoGALXK3Dis8rsVOeuhdrIF9W5l6fCfoN6isrRKBMh3jdvL23VgSd01aHWk7AJ3+
ujBCXXOeNlhvvsgqzgf2+RA/9QaDAfZCT+kNpodXiVxFWJMrfT2AdAhmvGvSmFbH
XrP+PIbXEgpht2FhWRuhJ23Soz39NT8VxRDfwPkLyQq2xgECQQDk9oVfuCvakz6P
aN82D1/DS9KNFblUd9wlHUWXDAOjkbh2CWpPwBeW0Lj7Is0lxU1klENosQAxsdtt
vAA6tZ/NAkEA1eqeCDiddGwAyiwtj9hB8HB2xM99di++OajYkFO47tj5KUdjqIb5
1WcixV0yaAB7Q1VqUvvmBrs4b7J8VnnUqQJBAMX955e+Sy3X5mFc7qhw4v6espQO
FRVWEKiHh4X2fa8Uc86elbAhDET+ePeyQHRJCYPQMfp2FRTkGDvsNsaOCIECQFC/
CPwNctHZWsr1thUQCoPZz9smfzM3flSBeY2xLKNr31FHk0Sv/mohTiy1qys600xt
V38Pepqb3Qe8ldaGklECQD/W1xcU+rbnwr8+ODTsFuRIWdBx3lNZCeAZZqEtaDX2
mk6v6W6TlWDFtUJWmLRyADYLwW5DbWPGFscnfAYJcuU=
-----END RSA PRIVATE KEY-----`
};
var instance = new Alipay(_config);
var url = instance.mobile_securitypay_pay({
	out_trade_no: "1216045324-3655",
	subject: "测试的商品",
	body: "该测试商品的详细描述",
	total_fee: "0.01",
	notify_url: "http://notify.msp.hk/notify.htm",
	it_b_pay: "30m",
	return_url: "m.alipay.com"
});

console.log(url)
var url2 = `
partner="2088511420574362"&seller_id="dotnar@hotmail.com"&out_trade_no="1216045324-3655"&subject="测试的商品"&body="该测试商品的详细描述"&total_fee="0.01"&notify_url="http://notify.msp.hk/notify.htm"&service="mobile.securitypay.pay"&payment_type="1"&_input_charset="utf-8"&it_b_pay="30m"&return_url="m.alipay.com"
&sign="MXYS99W7TWM5wAq%2BCaeYKbUFrbRK6mT5CkEhy3lWeE5Bu12PJ%2BGFy21EiKRmEmZLpwKC2ZVnSXXWtSslNL1lo9tvg94lUPYeFFFFGfuZbo2gi3Zx1NHSTZTN0qSF9t6Uqjwmwj%2FI4zwVVdsZz4oA2MKZr7T3GXtoxCfgxXaTyl0%3D"&sign_type="RSA"`

console.log(url2)